<!-- index.html -->
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<body>
<h1 onclick="test()">Raw File</h1>
<button> 点我呀 </button>
<button onclick="test02()">调用鸿蒙系统中的方法</button>
</body>
<!-- 执行的js脚本 -->
<script type="text/javascript">
    function test() {
        console.log('Ark WebComponent')
        return "This value is from index.html"
    }
    function test02() {
        obj.toAlert()
    }
</script>
</html>